<?php

namespace Database\Factories;

use App\Models\ConnectionsTypesModel;
use Illuminate\Database\Eloquent\Factories\Factory;

/**
 * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
 */
class ConnectionsFactory extends Factory
{
    protected $model = ConnectionsTypesModel::class;

    /**
     * Define the model's default state.
     *
     * @return array<string, mixed>
     */
    public function definition(): array
    {
        return [
            'connection' => 'user:password',
            'parameters' => json_encode(['user' => ['required', 'string'], 'password' => ['required', 'string']]),
            'icon' => 'user',
        ];
    }
}
